reNewCartNumber();
function reNewCartNumber(){
    $.ajax({
        type:'GET',
        url:'http://localhost:8080/petstore/cartNumber',
        success : function (data){
            console.log("success");
            $('#cartNumberSpan').text('');
            $('#cartNumberSpan').text('('+data+')');
        },
        error: function (errorMsg){
            console.log(errorMsg);
        },
    })
}